<!doctype html>


<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>Level (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
  </script>

  <script src="static/js/doc.js">
  </script>

  <meta charset="utf8">
</head>

<body onload="prettyPrint()">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>





<div class="colmask rightmenu">
<div class="colleft">
    <div class="col1">
      <!-- Column 1 start -->

<div id="title">
        <span class="fn">debug.Logger.Level</span>
        <span>Extends</span>
        <span class="fn-name">
          <a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object">
            Object</a>
        </span>
</div>

<div class="g-section g-tpl-75-25">
  <div class="g-unit g-first" id="description">
    The Level class defines a set of standard logging levels that
can be used to control logging output.  The logging Level objects
are ordered and are specified by ordered integers.  Enabling logging
at a given level also enables logging at all higher levels.
<p>
Clients should normally use the predefined Level constants such
as Level.SEVERE.
<p>
The levels in descending order are:
<ul>
<li>SEVERE (highest value)
<li>WARNING
<li>INFO
<li>CONFIG
<li>FINE
<li>FINER
<li>FINEST  (lowest value)
</li></li></li></li></li></li></li></ul>
In addition there is a level OFF that can be used to turn
off logging, and a level ALL that can be used to enable
logging of all messages.</p></p>
  </div>


        <div class="g-unit" id="useful-links">
          <div class="title">Useful links</div>
          <ol>
            <li><a href="../demos/debug.html">Demo</a></li>
            <li><a href="closure_goog_debug_logger.js.source.html"><span class='source-code-link'>Source Code</span></a></li>
          </ol>
        </div>
</div>






<h2 class="g-first">Inheritance</h2>
<pre class="inheritance">
Object
     <img src="static/images/inherit.gif">goog.debug.Logger.Level
</pre>




  <h2>Constructor</h2>
      <div class="fn-constructor">
    goog.debug.Logger.Level(<span><span class="arg">name</span>,&nbsp;<span class="arg">value</span></span>)
  </div>

   <h3>Parameters</h3>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">name</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">The name of the level.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">value</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span></div>
        <div class="entryOverview">The numeric value of the level.</div>
     </td>
   </tr>
  </table>


<h2>Instance Methods</h2>


  <div class="legend">
        <span class="key publickey"></span><span>Public</span>
        <span class="key protectedkey"></span><span>Protected</span>
        <span class="key privatekey"></span><span>Private</span>
  </div>







<div>
       <div class="desc">
         Defined in
         <span class="fn-name">
            <a href="class_goog_debug_Logger_Level.html">
              goog.debug.Logger.Level
            </a>
         </span>
       </div>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.debug.Logger.Level.prototype.toString"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">toString<span class="args">()</span>
        </span>
        &#8658; <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>&nbsp;
            String representation of the logger level.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_goog_debug_logger.js.source.html#line133">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
</div>














<h2>Static Methods</h2>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.debug.Logger.Level.createPredefinedLevelsCache_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.debug.Logger.Level.</span><span class="entryName">createPredefinedLevelsCache_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Creates the predefined levels cache and populates it.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_debug_logger.js.source.html#line245">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.debug.Logger.Level.getPredefinedLevel"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.debug.Logger.Level.</span><span class="entryName">getPredefinedLevel<span class="args">(<span class="arg">name</span>)</span>
        </span>
        &#8658; <div class="fullType"><span class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></span></div>
      </div>


     <div class="entryOverview">
       Gets the predefined level with the given name.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">name</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">The name of the level.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></span></div>&nbsp;
            The level, or null if none found.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_goog_debug_logger.js.source.html#line260">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.debug.Logger.Level.getPredefinedLevelByValue"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.debug.Logger.Level.</span><span class="entryName">getPredefinedLevelByValue<span class="args">(<span class="arg">value</span>)</span>
        </span>
        &#8658; <div class="fullType"><span class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></span></div>
      </div>


     <div class="entryOverview">
       Gets the highest predefined level &lt;= #value.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">value</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span></div>
        <div class="entryOverview">Level value.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></span></div>&nbsp;
            The level, or null if none found.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_goog_debug_logger.js.source.html#line274">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>



<h2>Static Properties</h2>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.debug.Logger.Level.ALL"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.debug.Logger.Level.</span><span class="entryName">ALL</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></span></div>
     </div>


     <div class="entryOverview">
       ALL indicates that all messages should be logged.
This level is initialized to <CODE>Number.MIN_VALUE</CODE>.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_debug_logger.js.source.html#line211">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.debug.Logger.Level.CONFIG"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.debug.Logger.Level.</span><span class="entryName">CONFIG</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></span></div>
     </div>


     <div class="entryOverview">
       CONFIG is a message level for static configuration messages.
This level is initialized to <CODE>700</CODE>.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_debug_logger.js.source.html#line181">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.debug.Logger.Level.FINE"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.debug.Logger.Level.</span><span class="entryName">FINE</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></span></div>
     </div>


     <div class="entryOverview">
       FINE is a message level providing tracing information.
This level is initialized to <CODE>500</CODE>.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_debug_logger.js.source.html#line189">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.debug.Logger.Level.FINER"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.debug.Logger.Level.</span><span class="entryName">FINER</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></span></div>
     </div>


     <div class="entryOverview">
       FINER indicates a fairly detailed tracing message.
This level is initialized to <CODE>400</CODE>.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_debug_logger.js.source.html#line196">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.debug.Logger.Level.FINEST"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.debug.Logger.Level.</span><span class="entryName">FINEST</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></span></div>
     </div>


     <div class="entryOverview">
       FINEST indicates a highly detailed tracing message.
This level is initialized to <CODE>300</CODE>.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_debug_logger.js.source.html#line204">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.debug.Logger.Level.INFO"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.debug.Logger.Level.</span><span class="entryName">INFO</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></span></div>
     </div>


     <div class="entryOverview">
       INFO is a message level for informational messages.
This level is initialized to <CODE>800</CODE>.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_debug_logger.js.source.html#line173">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.debug.Logger.Level.OFF"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.debug.Logger.Level.</span><span class="entryName">OFF</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></span></div>
     </div>


     <div class="entryOverview">
       OFF is a special level that can be used to turn off logging.
This level is initialized to <CODE>Number.MAX_VALUE</CODE>.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_debug_logger.js.source.html#line143">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.debug.Logger.Level.PREDEFINED_LEVELS"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.debug.Logger.Level.</span><span class="entryName">PREDEFINED_LEVELS</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span>!</span><span class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></span>&gt;</div>
     </div>


     <div class="entryOverview">
       The predefined levels.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_debug_logger.js.source.html#line219">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.debug.Logger.Level.SEVERE"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.debug.Logger.Level.</span><span class="entryName">SEVERE</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></span></div>
     </div>


     <div class="entryOverview">
       SEVERE is a message level indicating a serious failure.
This level is initialized to <CODE>1000</CODE>.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_debug_logger.js.source.html#line158">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.debug.Logger.Level.SHOUT"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.debug.Logger.Level.</span><span class="entryName">SHOUT</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></span></div>
     </div>


     <div class="entryOverview">
       SHOUT is a message level for extra debugging loudness.
This level is initialized to <CODE>1200</CODE>.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_debug_logger.js.source.html#line151">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.debug.Logger.Level.WARNING"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.debug.Logger.Level.</span><span class="entryName">WARNING</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></span></div>
     </div>


     <div class="entryOverview">
       WARNING is a message level indicating a potential problem.
This level is initialized to <CODE>900</CODE>.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_debug_logger.js.source.html#line165">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.debug.Logger.Level.predefinedLevelsCache_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.debug.Logger.Level.</span><span class="entryName">predefinedLevelsCache_</span>
        : <div class="fullType"><span>?</span><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></span></div>
     </div>


     <div class="entryOverview">
       A lookup map used to find the level object based on the name or value of
the level object.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_debug_logger.js.source.html#line238">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
      <!-- Column 1 end -->
    </div>

        <div class="col2">
          <!-- Column 2 start -->
          <div class="col2-c">
            <h2 id="ref-head">Package debug</h2>
            <div id="localView"></div>
          </div>

          <div class="col2-c">
            <h2 id="ref-head">Package Reference</h2>
            <div id="sideTypeIndex" rootPath="goog" current="debug.Logger.Level"></div>
          </div>
          <!-- Column 2 end -->
        </div>
</div>
</div>

</body>
</html>
